/**
 * common demo
 */
 
layui.define(function(exports){
  var $ = layui.$
  ,layer = layui.layer
  ,laytpl = layui.laytpl
  ,setter = layui.setter
  ,view = layui.view
  ,admin = layui.admin
  
  //公共业务的逻辑处理可以写在此处，切换任何页面都会执行
  //……
  
  
  
  //退出
  admin.events.logout = function(){
    //执行退出接口
    $.ajax({
		url: '/sys/user/logout', type: "get",
		complete: function(xhr,status){
			admin.exit(function(){location.reload(true);});
		}
	});
  };
  
  //对外暴露的接口
  exports('common', {});
});